home *** CD-ROM | disk | FTP | other *** search
/ Scene Storm / Scene Storm - Volume 1.iso / coding / c / unix / include / rcs / errno.h,v next >
Text File  |  1992-07-04  |  2KB  |  77 lines

  1. head    1.1;
  2. access;
  3. symbols;
  4. locks
  5.     gay_d:1.1; strict;
  6. comment    @ * @;
  7.  
  8.  
  9. 1.1
  10. date    92.07.04.13.29.27;    author gay_d;    state Exp;
  11. branches;
  12. next    ;
  13.  
  14.  
  15. desc
  16. @Unix error messages
  17. @
  18.  
  19.  
  20. 1.1
  21. log
  22. @Initial revision
  23. @
  24. text
  25. @/**
  26. *
  27. * The following symbols are the error codes returned by the UNIX system
  28. * functions.  Typically, a UNIX function returns -1 when an error occurs,
  29. * and the global integer named errno contains one of these values.
  30. *
  31. */
  32. #define EOSERR -1    /* Operating system error */
  33.  
  34. #define EPERM 1        /* User is not owner */
  35. #define ENOENT 2    /* No such file or directory */
  36. #define ESRCH 3        /* No such process */
  37. #define EINTR 4        /* Interrupted system call */
  38. #define EIO 5        /* I/O error */
  39. #define ENXIO 6        /* No such device or address */
  40. #define E2BIG 7        /* Arg list is too long */
  41. #define ENOEXEC 8    /* Exec format error */
  42. #define EBADF 9        /* Bad file number */
  43. #define ECHILD 10    /* No child process */
  44. #define EAGAIN 11    /* No more processes allowed */
  45. #define ENOMEM 12    /* No memory available */
  46. #define EACCES 13    /* Access denied */
  47. #define EFAULT 14    /* Bad address */
  48. #define ENOTBLK 15    /* Bulk device required */
  49. #define EBUSY 16    /* Resource is busy */
  50. #define EEXIST 17    /* File already exists */
  51. #define EXDEV 18    /* Cross-device link */
  52. #define ENODEV 19    /* No such device */
  53. #define ENOTDIR 20    /* Not a directory */
  54. #define EISDIR 21    /* Is a directory */
  55. #define EINVAL 22    /* Invalid argument */
  56. #define ENFILE 23    /* No more files (units) allowed */
  57. #define EMFILE 24    /* No more files (units) allowed for this process */
  58. #define ENOTTY 25    /* Not a terminal */
  59. #define ETXTBSY 26    /* Text file is busy */
  60. #define EFBIG 27    /* File is too large */
  61. #define ENOSPC 28    /* No space left */
  62. #define ESPIPE 29    /* Seek issued to pipe */
  63. #define EROFS 30    /* Read-only file system */
  64. #define EMLINK 31    /* Too many links */
  65. #define EPIPE 32    /* Broken pipe */
  66. #define EDOM 33        /* Math function argument error */
  67. #define ERANGE 34    /* Math function result is out of range */
  68. #define EWOULDBLOCK 35    /* Operation would block */
  69. #define ENAMETOOLONG 36 /* File name is too long */
  70. #define ENOTEMPTY 37    /* Directory is not empty */
  71. #define ELOOP 38    /* Too many soft links found */
  72.  
  73. extern int errno;
  74. extern int sys_nerr;
  75. extern char *sys_errlist[];
  76. @
  77.